#!/bin/bash

# 安装 utofs
apt-get install -y autofs
vim /etc/auto.master
+auto.master
/mnt    /etc/usb.txt --timeout 30


vim /etc/usb.txt

sdb         -fstype=btrfs,rw          :UUID=7c9c49a4-119d-4898-8461-3e210b970867
temp        -fstype=btrfs,rw          :UUID=e0d96438-aa4f-43d1-8ab8-45794446dd5e

/etc/sdb.txt
systemctl start  autofs
systemctl status autofs
systemctl enable autofs

systemctl restart  autofs
blkid
-fstype=auto,rw

systemctl restart  autofs




cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd

https://github.com/iranee/qnap-alist-webdav

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun


yum remove docker \
 docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine

yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo


yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin

systemctl start docker

systemctl status docker
systemctl enable docker


docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 --name="alist" xhofe/alist:latest


# 随机生成一个密码
docker exec -it alist ./alist admin random
# 手动设置一个密码,`NEW_PASSWORD`是指你需要设置的密码
docker exec -it alist ./alist admin set 1813033378
